package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.TaskVersionConfig;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author Hsylient
 * @description 针对表【task_version_config(版本配置表)】的数据库操作Mapper
 * @createDate 2023-06-21 14:53:00
 * @Entity com.novax.ex.activity.infrastructure.entity.TaskVersionConfig
 */
public interface TaskVersionConfigMapper extends BaseMapper {

    /**
     * 查询原始的版本
     *
     * @return 版本信息
     */
    TaskVersionConfig selectFirstVersion();

    TaskVersionConfig selectRecentVersion(@Param("registerTime") Date registerTime);

}
